using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._ToCollada
{
    /// <summary>
    /// <para>Multipatch To Collada</para>
    /// <para>Converts one or more multipatch features into a collection of COLLADA (.dae) files and referenced texture image files in an output folder. The inputs can be a layer or a feature class.</para>
    /// <para>将一个或多个多面体要素转换为输出文件夹中的 COLLADA （.dae） 文件和引用纹理图像文件的集合。输入可以是图层或要素类。</para>
    /// </summary>    
    [DisplayName("Multipatch To Collada")]
    public class MultipatchToCollada : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MultipatchToCollada()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features to be exported.</para>
        /// <para>要导出的多面体要素。</para>
        /// </param>
        /// <param name="_output_folder">
        /// <para>Output Collada Folder</para>
        /// <para>The destination folder where the output COLLADA files and texture image files will be placed.</para>
        /// <para>将放置输出 COLLADA 文件和纹理图像文件的目标文件夹。</para>
        /// </param>
        public MultipatchToCollada(object _in_features, object _output_folder)
        {
            this._in_features = _in_features;
            this._output_folder = _output_folder;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Multipatch To Collada";

        public override string CallName => "conversion.MultipatchToCollada";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _output_folder, _prepend_source.GetGPValue(), _field_name];

        /// <summary>
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features to be exported.</para>
        /// <para>要导出的多面体要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Multipatch Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Collada Folder</para>
        /// <para>The destination folder where the output COLLADA files and texture image files will be placed.</para>
        /// <para>将放置输出 COLLADA 文件和纹理图像文件的目标文件夹。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Collada Folder")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_folder { get; set; }


        /// <summary>
        /// <para>Prepend Source Name</para>
        /// <para><xdoc>
        ///   <para>Prepend the file names of the output COLLADA files with the name of the source feature layer.
        ///   <bulletList>
        ///     <bullet_item>Checked—Prepend the file names.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—Do not prepend the file names. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>在输出 COLLADA 文件的文件名前面加上源要素图层的名称。
        ///   <bulletList>
        ///     <bullet_item>选中 （Checked） - 在文件名前面加上。</bullet_item><para/>
        ///     <bullet_item>未选中 （Unchecked） - 不要在文件名前面添加。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Prepend Source Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _prepend_source_value _prepend_source { get; set; } = _prepend_source_value._false;

        public enum _prepend_source_value
        {
            /// <summary>
            /// <para>PREPEND_SOURCE_NAME</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PREPEND_SOURCE_NAME")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PREPEND_NONE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PREPEND_NONE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Use Field Name</para>
        /// <para>The feature attribute to use as the output COLLADA file name for each exported feature. If no field is specified, the feature's Object ID is used.</para>
        /// <para>用作每个导出特征的输出 COLLADA 文件名的要素属性。如果未指定任何字段，则使用要素的对象 ID。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Use Field Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _field_name { get; set; } = null;


        public MultipatchToCollada SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}